package part1.language_basis.day04;

public class SwitchCaseDemo {
    public static void main(String[] args) {

        for (int i = 0; i < 5; i++) {
            if (i==2){
                return;//break;
            }
            System.out.println("----");
        }


        int num = 2;
        switch (num){ //整数byte，short，int，char(long不行)/String/枚举
            case 1: //if(num==1)
                System.out.println(111);
                break; //跳出switch
            case 2:
                System.out.println(222);
                break;
            case 3:
                System.out.println(333);
                break;
            case 4:
                System.out.println(444);
                break;
            default:
                System.out.println(555);
                break;
        }

    }
}
